<?php
require './curl.php';
$id=$_REQUEST["id"];
if(!is_numeric($id)) {
    $html = curl_get_contents('https://www.iqiyi.com/'.$id.'.html');
    preg_match('/(albumId: "|param\[\'albumid\'\] = ")(.*)"/U', $html, $showid); // 获取分类名称、showid
    $id = $showid[2];
}
$data = curl_get_contents("https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid={$id}&size=5000&page=1");
echo $data;
?>
